﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IndexPayload>" %>
<%@ Import Namespace="ActivateYourGlutes.Payloads.Home"%>
<%@ Import Namespace="System.Security.Principal"%>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    ActivateYourGlutes
</asp:Content>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
<%
if (!Request.IsAuthenticated)
{
    Html.RenderPartial(MVC.Home.Views.AnonymousIndex);
}
else
{
    if (ViewData.Model.AccountHasData)
    {
        Html.RenderPartial(MVC.Home.Views.IndexWithData);
    }
    else
    {
        Html.RenderPartial(MVC.Home.Views.IndexWithNoData);
    }
}
%>
</asp:Content>
